package pratice.pm;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class Demo_03 {
    public static void main(String[] args) {

        Properties pro = new Properties();
        pro.setProperty("001","lining");
        pro.setProperty("002","zhangtong");
        pro.setProperty("003","huzilei");

        try {
            FileOutputStream fos = new FileOutputStream("aa.properties");

            pro.store(fos,"");


        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
